package com.csdj.entity;

import java.io.Serializable;

/**
 * packageName com.csdj.entity
 *
 * @author winver
 * @version 1.0
 * @className Employee
 * @date 2024/11/27
 * @description TODO
 */

public class Employee  implements Serializable {
    private Integer empid = -1;
    private String name;
    private String password;
    private Integer departmentId;
    private Integer positionId;
    private String status ="在职";
    private String img;
    private String email;

    private Department department;

    private Positions positions;

    public Employee() {
        System.out.println("构造方法正在被执行");
    }


    public Integer getEmpid() {
        return empid;
    }

    public void setEmpid(Integer empid) {
        this.empid = empid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public Integer getPositionId() {
        return positionId;
    }

    public void setPositionId(Integer positionId) {
        this.positionId = positionId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public Positions getPositions() {
        return positions;
    }

    public void setPositions(Positions positions) {
        this.positions = positions;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "empid=" + empid +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", departmentId=" + departmentId +
                ", positionId=" + positionId +
                ", status='" + status + '\'' +
                ", img='" + img + '\'' +
                ", email='" + email + '\'' +
                ", department=" + department +
                ", positions=" + positions +
                '}';
    }
}
